
/** API 地址类型接口 */
interface ApiURL {
    login: string
    logout: string
    getUserInfo: string
    getUserRoles: string
    refreshToken: string
    resetPassword: string
}

/** 验证用户API地址 */
export const authUrl: ApiURL = {
    login: '/api/v1/login',
    logout: '/api/v1/logout',
    getUserInfo: '/api/v1/getUserInfo',
    getUserRoles: '/api/v1/getUserRoles',
    refreshToken: '/api/v1/refreshToken',
    resetPassword: '/api/v1/resetPassword',
}


const perfBase = '/api/v1/perf'
interface PerformanceUrl {
    grade: string
    class: string
}

export const PerfUrl: PerformanceUrl = {
    grade: `${perfBase}/grade`,
    class: `${perfBase}/class`,
}

export default {
    authUrl,
}